home *** CD-ROM | disk | FTP | other *** search
/ Aminet 49 / Aminet 49 (2002)(GTI - Schatztruhe)[!][Jun 2002].iso / Aminet / util / libs / ttrender.lha / ttrender-2.0 / Developer / include / inline / ttrender.h < prev   
Encoding:
C/C++ Source or Header  |  2002-04-06  |  1.9 KB  |  69 lines

  1. #ifndef _INLINE_TTRENDER_H
  2. #define _INLINE_TTRENDER_H
  3.  
  4. #ifndef __INLINE_MACROS_H
  5. #include <inline/macros.h>
  6. #endif
  7.  
  8. #ifndef TTRENDER_BASE_NAME
  9. #define TTRENDER_BASE_NAME TTRenderBase
  10. #endif
  11.  
  12. #define TT_PutStr(string) \
  13.     LP1(0x1e, BOOL, TT_PutStr, UBYTE *, string, a0, \
  14.     , TTRENDER_BASE_NAME)
  15.  
  16. #define TT_PutUStr(string) \
  17.     LP1(0x24, BOOL, TT_PutUStr, UWORD *, string, a0, \
  18.     , TTRENDER_BASE_NAME)
  19.  
  20. #define TT_SetFont(name, size) \
  21.     LP2(0x2a, BOOL, TT_SetFont, STRPTR, name, a0, UWORD, size, d0, \
  22.     , TTRENDER_BASE_NAME)
  23.  
  24. #define TT_PutStrTagList(string, taglist) \
  25.     LP2(0x30, BOOL, TT_PutStrTagList, UBYTE *, string, a0, struct TagItem *, taglist, a1, \
  26.     , TTRENDER_BASE_NAME)
  27.  
  28. #ifndef NO_INLINE_STDARG
  29. #define TT_PutStrTags(string, tags...) \
  30.     ({ULONG _tags[] = {tags}; TT_PutStrTagList((string), (struct TagItem *) _tags);})
  31. #endif
  32.  
  33. #define TT_PutUStrTagList(string, taglist) \
  34.     LP2(0x36, BOOL, TT_PutUStrTagList, UWORD *, string, a0, struct TagItem *, taglist, a1, \
  35.     , TTRENDER_BASE_NAME)
  36.  
  37. #ifndef NO_INLINE_STDARG
  38. #define TT_PutUStrTags(string, tags...) \
  39.     ({ULONG _tags[] = {tags}; TT_PutUStrTagList((string), (struct TagItem *) _tags);})
  40. #endif
  41.  
  42. #define TT_SetModesTagList(taglist) \
  43.     LP1(0x3c, ULONG, TT_SetModesTagList, struct TagItem *, taglist, a0, \
  44.     , TTRENDER_BASE_NAME)
  45.  
  46. #ifndef NO_INLINE_STDARG
  47. #define TT_SetModesTags(tags...) \
  48.     ({ULONG _tags[] = {tags}; TT_SetModesTagList((struct TagItem *) _tags);})
  49. #endif
  50.  
  51. #define TT_GetFontAttrsTagList(taglist) \
  52.     LP1(0x42, ULONG, TT_GetFontAttrsTagList, struct TagItem *, taglist, a0, \
  53.     , TTRENDER_BASE_NAME)
  54.  
  55. #ifndef NO_INLINE_STDARG
  56. #define TT_GetFontAttrsTags(tags...) \
  57.     ({ULONG _tags[] = {tags}; TT_GetFontAttrsTagList((struct TagItem *) _tags);})
  58. #endif
  59.  
  60. #define TT_StrWidth(string) \
  61.     LP1(0x48, ULONG, TT_StrWidth, UBYTE *, string, a0, \
  62.     , TTRENDER_BASE_NAME)
  63.  
  64. #define TT_UStrWidth(string) \
  65.     LP1(0x4e, ULONG, TT_UStrWidth, UWORD *, string, a0, \
  66.     , TTRENDER_BASE_NAME)
  67.  
  68. #endif /*  _INLINE_TTRENDER_H  */
  69.